guess-crate-copyright: use "MIT" instead of "Expat" or "MIT-License"
authorXimin Luo <infinity0@debian.org>
Thu, 24 Aug 2017 15:29:14 +0000 (17:29 +0200)
committerXimin Luo <infinity0@debian.org>
Thu, 24 Aug 2017 15:29:14 +0000 (17:29 +0200)
Debian prefers "Expat" to "MIT" but we'll match debcargo(1) and the Rust ecosystem here

debian/copyright
debian/scripts/guess-crate-copyright
debian/scripts/prune-checksums

index dabe22e32bf6eb7c4179a65d2c1bf28be9474de0..794b97be874b290947940f4d6b0139890b7edee7 100644 (file)
@@ -12,7 +12,7 @@ Files: src/*
        appveyor.yml
        configure
 Copyright: 2014 The Rust Project Developers
-License: MIT-License or Apache-2.0
+License: MIT or Apache-2.0
 Comment: please do not add * to the above paragraph, so we can use lintian to
          help us update this file properly
 
@@ -44,7 +44,7 @@ Files: vendor/bitflags-*
        vendor/tempdir-0*
        vendor/term-0*
 Copyright: 2014-2016 The Rust Project Developers
-License: MIT-License or Apache-2.0
+License: MIT or Apache-2.0
 Comment:
  This is a collection of external crates embedded here to bootstrap cargo.
  Most of them come from the original upstream Rust project, thus share the
@@ -71,7 +71,7 @@ Files: vendor/backtrace-0*
        vendor/toml-0*
 Copyright: 2014-2017 Alex Crichton <alex@alexcrichton.com>
            2014-2017 The Rust Project Developers
-License: MIT-License or Apache-2.0
+License: MIT or Apache-2.0
 Comment: see https://github.com/alexcrichton/
 
 Files: vendor/aho-corasick-*
@@ -79,7 +79,7 @@ Files: vendor/aho-corasick-*
        vendor/memchr-*
        vendor/utf8-ranges-*
 Copyright: 2015 Andrew Gallant <jamslam@gmail.com>
-License: MIT-License or Unlicense
+License: MIT or Unlicense
 Comment: see upstream projects,
  * https://github.com/docopt/docopt.rs
  * https://github.com/BurntSushi/aho-corasick
@@ -96,21 +96,21 @@ Files: vendor/advapi32-sys-*
        vendor/ws2_32-sys-*
 Copyright: 2014-2017 Peter Atashian <retep998@gmail.com>
            2014-2017 winapi-rs developers
-License: MIT-License
+License: MIT
 Comment: see https://github.com/retep998/winapi-rs
 
 Files: vendor/curl-0*
        vendor/curl-sys-0*
 Copyright: 2014-2016 Carl Lerche <me@carllerche.com>
            2014-2016 Alex Crichton <alex@alexcrichton.com>
-License: MIT-License
+License: MIT
 Comment: see https://github.com/sfackler/rust-openssl
 
 Files: vendor/dtoa-0*
        vendor/itoa-0*
        vendor/quote-0*
 Copyright: 2016-2017 David Tolnay <dtolnay@gmail.com>
-License: MIT-License or Apache-2.0
+License: MIT or Apache-2.0
 Comment: see https://github.com/dtolnay
 
 Files: vendor/error-chain-0*
@@ -118,12 +118,12 @@ Copyright: 2016 Brian Anderson <banderson@mozilla.com>,
            2016 Paul Colomiets <paul@colomiets.name>,
            2016 Colin Kiegel <kiegel@gmx.de>,
            2016 Yamakaky <yamakaky@yamaworld.fr>
-License: MIT-License or Apache-2.0
+License: MIT or Apache-2.0
 Comment: see https://github.com/brson/error-chain
 
 Files: vendor/foreign-types-0*
 Copyright: 2017-2017 Steven Fackler <sfackler@gmail.com>
-License: MIT-License or Apache-2.0
+License: MIT or Apache-2.0
 Comment: see https://github.com/sfackler/foreign-types
 
 Files: vendor/hamcrest-0*
@@ -140,13 +140,13 @@ Copyright: 2014-2016 Carl Lerche <me@carllerche.com>
            2014-2016 Urban Hafner <contact@urbanhafner.com>
            2014-2016 Valerii Hiora <valerii.hiora@gmail.com>
            2014-2016 Yehuda Katz <wycats@gmail.com>
-License: MIT-License or Apache-2.0
+License: MIT or Apache-2.0
 
 Files: vendor/idna-0*
 Copyright: 2013 Simon Sapin <simon.sapin@exyr.org>
            2013-2014 Valentin Gosu
            1991-2015 Unicode, Inc
-License: MIT-License or Apache-2.0
+License: MIT or Apache-2.0
 
 Files: vendor/idna-0.1.0/src/IdnaMappingTable.txt
        vendor/idna-0.1.0/tests/IdnaTest.txt
@@ -190,17 +190,17 @@ Comment: see http://www.unicode.org/copyright.html
 
 Files: vendor/lazy_static-0*
 Copyright: 2014-2016 Marvin Löbel <loebel.marvin@gmail.com>
-License: MIT-License
+License: MIT
 Comment: see https://github.com/rust-lang-nursery/lazy-static.rs
 
 Files: vendor/matches-*
 Copyright: 2015 Simon Sapin <simon.sapin@exyr.org>
-License: MIT-License
+License: MIT
 Comment: see https://github.com/SimonSapin/rust-std-candidates
 
 Files: vendor/metadeps-1.*
 Copyright: 2016 Josh Triplett <josh@joshtriplett.org>
-License: MIT-License or Apache-2.0
+License: MIT or Apache-2.0
 Comment: see https://github.com/joshtriplett/metadeps
 
 Files: vendor/miniz-sys-*/miniz.c
@@ -209,7 +209,7 @@ License: Unlicense
 
 Files: vendor/num_cpus-*
 Copyright: 2015 Sean McArthur <sean.monstar@gmail.com>
-License: MIT-License
+License: MIT
 Comment: see https://github.com/seanmonstar/num_cpus
 
 Files: vendor/openssl-*
@@ -221,7 +221,7 @@ License: Apache-2.0
 Files: vendor/openssl-sys-*
 Copyright: 2015 Steven Fackler <sfackler@gmail.com>
            2015 Alex Crichton <alex@alexcrichton.com>
-License: MIT-License
+License: MIT
 Comment: see https://github.com/sfackler/rust-openssl
 
 Files: vendor/serde-1.*
@@ -231,19 +231,19 @@ Files: vendor/serde-1.*
        vendor/serde_json-1.*
 Copyright: 2014-2017 Erick Tryzelaar <erick.tryzelaar@gmail.com>
            2014-2017 David Tolnay <dtolnay@gmail.com>
-License: MIT-License or Apache-2.0
+License: MIT or Apache-2.0
 Comment: see https://github.com/serde-rs
          see https://github.com/dtolnay/serde-ignored
 
 Files: vendor/strsim-*
 Copyright: 2015 Danny Guo <dannyguo91@gmail.com>
-License: MIT-License
+License: MIT
 Comment: see https://github.com/dguo/strsim-rs
 
 Files: vendor/syn-0*
        vendor/synom-0*
 Copyright: 2016-2017 David Tolnay <dtolnay@gmail.com>
-License: MIT-License or Apache-2.0
+License: MIT or Apache-2.0
 Comment: see https://github.com/dtolnay/syn
 
 Files: vendor/thread-id-2.*
@@ -255,51 +255,51 @@ Comment: see https://github.com/ruud-v-a/thread-id
 
 Files: vendor/thread_local-0*
 Copyright: 2016 Amanieu d'Antras <amanieu@gmail.com>
-License: MIT-License or Apache-2.0
+License: MIT or Apache-2.0
 Comment: see https://github.com/Amanieu/thread_local-rs
 
 Files: vendor/unicode-bidi-*
 Copyright: 2015 The Servo Project Developers
-License: MIT-License or Apache-2.0
+License: MIT or Apache-2.0
 Comment: see https://github.com/servo/unicode-bidi
 
 Files: vendor/unicode-normalization-*
 Copyright: 2016 kwantam <kwantam@gmail.com>
-License: MIT-License or Apache-2.0
+License: MIT or Apache-2.0
 Comment: see https://github.com/unicode-rs/unicode-normalization
 
 Files: vendor/unicode-xid-0*
 Copyright: 2015-2017 erick.tryzelaar <erick.tryzelaar@gmail.com>
            2015-2017 kwantam <kwantam@gmail.com>
-License: MIT-License or Apache-2.0
+License: MIT or Apache-2.0
 Comment: see https://github.com/unicode-rs/unicode-xid
 
 Files: vendor/unreachable-0*
        vendor/void-1.*
 Copyright: 2015-2017 Jonathan Reem <jonathan.reem@gmail.com>
-License: MIT-License
+License: MIT
 Comment: see https://github.com/reem/
 
 Files: vendor/url-1.*
 Copyright: 2015-2016 Simon Sapin <simon.sapin@exyr.org>
            2013-2016 The rust-url developers
-License: MIT-License or Apache-2.0
+License: MIT or Apache-2.0
 Comment: see https://github.com/servo/rust-url
 
 Files: vendor/vcpkg-0*
 Copyright: 2017-2017 Jim McGrath <jimmc2@gmail.com>
-License: MIT-License or Apache-2.0
+License: MIT or Apache-2.0
 Comment: see https://github.com/mcgoo/vcpkg-rs
 
 Files: src/doc/javascripts/prism.js
        debian/missing-sources/prism.js
 Copyright: 2015 Lea Verou
-License: MIT-License
+License: MIT
 
 Files: debian/*
 Copyright: 2017 Ximin Luo <infinity0@debian.org>
            2015-2016 Luca Bruno <lucab@debian.org>
-License: MIT-License or Apache-2.0
+License: MIT or Apache-2.0
 
 Files: debian/bootstrap.py
 Copyright: 2015 David Huseby
@@ -328,7 +328,7 @@ License: BSD-2-clause
  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  POSSIBILITY OF SUCH DAMAGE.
 
-License: MIT-License
+License: MIT
   Permission is hereby granted, free of charge, to any person obtaining a copy
   of this software and associated documentation files (the "Software"), to deal
   in the Software without restriction, including without limitation the rights
index de03593401a1ca95c7a56a891c71949e36d062bd..8d80e2cde21c43c6655928871e69535625993cc3 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/python3
 # Copyright: 2015-2017 The Debian Project
-# License: MIT-License or Apache-2.0
+# License: MIT or Apache-2.0
 #
 # Guess the copyright of a cargo crate by looking at its git history.
 
@@ -37,6 +37,6 @@ Comment: see {3}
 """.format(
                os.path.join(crate, "*"),
                "\n           ".join("%s-%s %s" % (first_year, last_year, a.replace(" <>", "")) for a in data ["package"]["authors"]),
-               data["package"].get("license", "???").replace("/", " or ").replace("MIT", "Expat"),
+               data["package"].get("license", "???").replace("/", " or "),
                repo or "???"
        ))
index e930cdc02f2d80917a7d7d56b7452a44db1bdb61..0c895cff4491c6e0f2f3fc9cc6d7890a55ed45ff 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/python3
 # Copyright: 2015-2017 The Debian Project
-# License: MIT-License or Apache-2.0
+# License: MIT or Apache-2.0
 #
 # Helper to remove removed-files from .cargo-checksum
 # TODO: rewrite to perl and add to dh-cargo, maybe?